import graph.graph as gt
import graph.basicproblem as gb

if __name__ == '__main__':
    W = [['A', 0.4], ['B', 0.1], ['C', 0.2], ['D', 0.15], ['E', 0.15]]
    tree = gb.Huffmantree(W)
    C = gb.HuffmanCoding(tree)
    print(C)